//
//  ScheduleInspectionViewController.h
//  FMS
//
//  Created by Steven on 10/12/13.
//  Copyright (c) 2013 QGSVN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CustomButton.h"
#import "DatePickerViewController.h"
#import "ListPersonInChargeViewController.h"
#import "FilterViewController.h"

@interface ScheduleInspectionViewController : FMSViewController<DatePickerViewDelegate,  ListPersonInChargeViewDelegate, FilterViewDelegate, UITextViewDelegate>{
    NSMutableDictionary *dictLanguage;
    NSMutableDictionary *_dictSchedule;
    __weak IBOutlet UILabel *lblTitleSchedule;

    CustomButton *btnMaintenanceType;
    CustomButton *btnTypeRequirment;
    CustomButton *btnStartDate;
    CustomButton *btnWorkingType;
    CustomButton *btnItemType;
    CustomButton *btnLastUpdate;
    
    UILabel *lblInServiceType;
    UITextView *tvRemark;
    UILabel *lblBorderRemark;
    
    int indexSelectDate;
    NSString *startDateStr;
    NSString *endDateStr;
    
    int typeRequirement;
    int typemaintenance;
    BOOL isCheckEditting;
}
@property (unsafe_unretained) id delegate;
@property (nonatomic, retain) NSMutableDictionary *dictSchedule;
@property (weak, nonatomic) IBOutlet UITableView *tbScheduleInspection;
@property (nonatomic, assign) BOOL isEditting;
@property (assign) BOOL isCheckEditting;
//vinh
@property (strong, nonatomic) NSMutableDictionary *inputInspectionDict;
@property (strong, nonatomic) NSMutableDictionary *inputMaintenanceDict;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil schedule:(NSMutableDictionary *)schedule;
- (void)updateContentServiceItem;
- (void)reloadInfoSchedule;
- (void) finishUpdateMaintenance;
- (void)saveScheduleAfterUpdateMaintenance:(NSMutableDictionary*)_inputMaintenanceDict;
@end
